package com.gopay.common.asynexport.constants;

/**
 * Created by zhoutong on 2017/8/9.
 */
public class AsynexportConstants {
    /**
     * 获取查询SQL时map的key
     */
    public static final String QUERY_SQL_KEY = "QUERY_SQL";

    /**
     * 获取查询总记录数SQL时map的key
     */
    public static final String QUERY_COUNT_SQL_KEY = "QUERY_COUNT_SQL";

    /**
     * 异步导出记录点
     */
    public static final int ASYN_COUNT = 10000;

    /**
     * 最大失败次数
     */
    public static final int MAX_FAILED_COUNT = 3;

    /**
     * 每页查询记录数
     */
    public static final int QUERY_PAGE_COUNT = 2500; //生产优化 12期 修改  lx 2017-11-21 17:21:57 原值 12500 线程并发时 产生过多对象 影响垃圾回收 cpu 负载过高

    /**
     * 新建excel页数
     */
    public static final int NEW_EXCEL_PAGE = 20; // 生产优化12期 修改 原值 4

    /**
     * 组装excel缓存行数
     */
    public static final int EXCEL_ROW_MEMORY = 100;

    /**
     * 配置后缀
     */
    public static final String TITLE_NAME_SUFFIX = "_TITLE_NAME";
    public static final String SHEET_NAME_SUFFIX = "_SHEET_NAME";
    public static final String VALUE_INDEX_SUFFIX = "_VALUE_INDEX";

    /**
     * 执行状态
     * 00 未生成
     * 01 生成中
     * 02 已生成
     * 03 已失败
     * 04 已失效
     */
    public static final String DEAL_STATUS_WAIT = "00";
    public static final String DEAL_STATUS_DOING = "01";
    public static final String DEAL_STATUS_SUCCESS = "02";
    public static final String DEAL_STATUS_FAIL = "03";
    public static final String DEAL_STATUS_INVALID = "04";

}
